Use dialog instead of popup