formated index and show page