Fixed InputManager bug and refactored ProgressBar

1. Fixed InputManager removeListener bug
2. Refactored ProgressBar