Fixes #297 and #320

Consolidates alert boxes and fixes alert box position so that it is
always visible, even if the page is scrolled.