add logic for displaying page title