fixed jQuery bug not displaying graphs for display view