create base controller