pull the controller from the view, register actionlistener in main