refactored html for BoardView render function