adding buttons for line graphs