Fixing menus and courtain to hide on document click on iPad