added functionality to hide edit and new functionality if the user is not an administrator