moved script contents to separate section (WIP)
removed all ids and moved button functions to top
fixed td widths