added snippet to get height of the main screen