using @potch idea on stopping event propagation