Preparing for refactoring html view