show bootstrap alerts instead of popups for rest api errors