removing useless echo
removing unneeded message
remove unneeded messages
switching render table function to return headings rather than no record message