added graphs controller, added create new graph and swith graphs