Uses modal instead of javascript alert