lock event logic client side
server side logic for lock event