Refactoring of Index.cshtml