Added height limitation for download and selection body with overflow auto. Added check to controller to close window if navigation bar item is clicked a second time after opening a panel such as layers or tools