clicking on anywhere else unselects the div and closes the controls