add rate control and preset handling in webui