redirecting to index upon requesting