How to revert a change in form layout