Allows for closing control box with click