Converted edit a haml and solving mistake with modal edit