conver edit page to haml