added secondstotime function to proper view object