replaced all alert() calls with bootstrap modal - use router.alert(msg, title)