Consolidated some js functions.

used condensed bootstrap tables to make it look nicer.
Changed the default output display fo the messages more compact.