add different panels for resource and graph