changes to dismiss alerts and some bug fixes

dismiss-able alerts now only display if there is a message (not on page
load).