added alert msgbox, added post requests