fixing time axes and zoom function