made menu animation smoother