made new controller to manage switching between screens
and adding listeners