refactored frontend edit modal
refactored frontend edit modal