posts-code - add action index