Adding logic and style to indicate the current page