Implemented toggling of the overlay