made changes to dom controller