init moved to dom ready