add export xls file and improve some function