converting modal window to bootstrap widget for consistent UI