setting up MVC, building handlers and signal