adding export function and button to perform action in dashboard