move classes helpers to dom folder, remove unnecessary variables