fixed datatables format, refactored datatables code and tweaked css