code to render index view with params letter