Create controlCenter.js

extracted control center functions to separate script to allow more modular design