add exit button, moved buttons to logic file cleaned up imports.