Changed body click handler to delegate