added document ready to the page