save and load function for MyController to read and write the controller