Debugged and tested the AJAX buttons and dialog loader function