Fixed animation issues when user clicks during an animation
Refactored sub menu animation code to an abstract class