added auth condition for viewing edit menu