Edit Main file