You don't need this. Once you're logged in as an admin, pages should be using the admin layout