Code for the Hide Dashboard plugin