added sleep(2) before page refresh after add