adding the bootstrap modal to the lessons index page on page load