Fixed bug when drawing buttons before layout
Added code to exit the application
Better layout of children
Added DoneBox
Fixed typo in legend