Bringing mainframe to front after drawing

Closes #43