Connect views to the handler