adjust popover, remove equal heights, cleanup js