Add a couple more action hooks before and after the admin panel