changed layout

changed layout to size components based on percentage instead of a pixel
count. this allows for greater flexibility using different screen
resolutions.