changed alert to bootstrap modal