Fixed typo with naming of action types
Removed dead code