Added flash msgs, truncate words and fixed listing bug