removed old code in main controller

moved to right menu controller.