add action icon and function

also fix bug