sample function to be called on clicking REPORT button