Update edit.php

Make use of JLayoutHelper where possible