What exactly are you trying to do and what exact modifications are you making?
You will need to create a new xml configuration file to store your page layout, and update the PageConfigOptions.groovy file to let it know about your new layout. There may be other steps required as well, I can't remember if that is it or not. Let us know if that does or does not work for you.