fixed edit page js not getting triggered