Fixes a PHP fatal error due to a typo error
Added actions handling skeleton (needs love)