change get_window_height to get_container_height; width too