added functionality for a show page