Refactored the class layout, created suitable java interface

this refactoring will create a more structured application
and let the developer create his own custom objects inside
the dashboard tab.