Add training button functionality