* : Refactored functionality of controls into seperate file named controls_functionality.py