added hiding of the appmenu