Converted actions into methods