added screenTime property to view controller

changed vc lifecycle methods to viewWillXXX