generate admin controller for an admin page