changed the setHeight function to just set element height to the window height