fixed js bug not populating form value when editing in admin area