Refactored tasks_view actions. Added tasks:cancel to the main event handler.