checking in session
updated to make modals work again with BS3