modal working but conflicts with alerts.  Will have to refactor alerts a bit to make everything work.
interim commit.
Modal is now working correctly.  See dashboard for example.