added DOM ready functions for block