added status alerts and fixed some bugs