[Front-end] Added JS code to ensure that popovers dont interlap and also clicking on body will close popovers.