allowing for resize of window