centralized java dashboard code, ajax changes

centralized java dashboard code and changed so that same method can be
used for initial page view and ajax; will add parameters to specify
columns, rows, and filters next