updated formatting, added alert box