refactoring router code
unbinding all events from task creation modal when it is dismissed
formatting and indenting code