update page style and logic