change dir for controller