document ready method added