changed second constructor to addMovingGraph (not addMovingGraphButton) for consistency; moved common init code from both constructors to separate function