modify action function
implement case 1 and case 2 action format
add some simple items for teseting