Switched from redirect on the index page to different code rendering