added option for horizontal popup