set async to false on .ajax calls, commented out dialogg confrim and added bootstrap modal of confirm