some changes to process view controller