Fixed a small bug when switching modules

This will disable the config/admin buttons if they were enabled when you
switch to a different module