[r] clear initialize of mainController to prevent not definend globals