Master controller refactor

Refactored master controller to dynamically bind event listeners and trigger changeLevel functions.