moving update entry trigger to entry js