setmin and max update popup view