optimize UI handler. TODO:put image effect radiobutton with function dynamically