added show / hide graph button, other minor changes