implementing haml in ui pages