Bugfix. visibility
Added addPage() to add certain pages