Add action lock or unlock depending on lock state