Creating ajax function to get the show page