fixed excel export funtionality