template file handle index view