building the Main_base_controler