refactor MainWindow code
refactor window getters in MainWindow
refactor purposes fixtures in features helpers
create entrances spy and stub #create method
add error window to glade layout for Mainwindow
make MainWindow open an error window when invalid purpose number