hide label create modal and check session on view and edit pages