changed show page logic