added navigation view controller and text statistics