added a minvalue for height and lowered the minvalue for refresh