Update edit.php

Used 'group' functions for dynamic input fields