update button on events works client and server side