added portal documentation. fixed a bug with popup and cart