Adjusting function to add to both public and admin head