partial implementation of bootstrap modals to replace thickbox