*these changes were made to prod earlier* 

deleted global variables, as requested by Dan S.
adjusted html code to properly reflect usage of php variables