change layout of graph