added username to ajax send
fixed double stopping problem