Moved function registration to after function
Fixed dependencies for new plugins
Moved menu toggle function to functions.global
Moved global functions to plugin