Refactored site base controller