refactoring actions class
actions now is an array instead of a plain object