fixed height issues with keeping the application in a div mode