Adjusting page handling and adding styles