replace haml index with erb, add flash display