Improve user experience with optimistic update