fixed bug with Links and Buttons for 'custom_report.php'