refactor view file layout