fix some lock/unlock bugs and add lock/unlock to money details