Fixing issues related to window resizing

Was not able to dynamically reposition everything properly when the
window was resized. Should be OK now -