stop propagation used whenever prevent default is called