Dialog fixups: Mobile

Fixed a bug that would cause modal dialogs to not show up, and another dialog-related issue that broke portal poslinks on mobile.