improve popup and add scrollbar when overflow