Added stop propagation event to mainContainer