Added pagetype functionality, changed css for context menu