alerts added to views where required