Very small changes to click function and added service for communication between controllers