refactoring of views for manager only user