How do I combine two onEdit functions into one