add ramp function

add ramp function back online, however still not fix unselect problem