added min and max buttons