Moved ui related methods to main

Frame generator is not concerned with the size of the frame. This is a
UI concern which is handled by main program