fixed z-index of graph and cleaned up some animation