updated controller.py

Updated mouse_click_dispatch, added action() in controller.py