fixed prev issue & added minWidth option