rewrite some of static index viewinto haml