adding redirect to index