Code refactoring, restrictions and animation improvements
small animation fixes and refactoring.
small animation fixes
rotation gesture fix