Click event handler + appending of elements to body