added scrollable table, changed some JS that needs more refactoring