Table output now works, added 'Delete record' button