Changed view code to use codeigniter.