use new syntax and ActiveAtrr
fix indentation and delete comment in index action