changed invoking functions for creating DOM elements, so it matches changes in helpers.js file