Main window controller
Main window controller