added quote button functionality