add validation on :action and make index on background