updated edit mode