reset only when reset is required
added html modal for link edit