Useful changes for properly structuring GUI. 
Removed unnecessary code from ViewerFrame.