Handling click event on export btn