restructured javascript, ajax form and table loading close to finished, some style changes