Data tables plugin has been utilized to show the purchases list. +Some cleanup.