created is_admin method for controllers