reorganized common dashboard code; added task errors popups; started changes in code style