redering index and show