Added listener to update shifts when edited