Add edit through ajax