Working on custom button and min max