Cleanup: removing pageType variable
Move creation of webpages check
Change system call to firefox to webbrowser module call