Started work on main window backend