General refactoring, fixed #5

Data of pages is removed every time the page is shown and afterwards refilled
Outsourced style into a css file