Structure of controller