Convert states controller to haml"