Implementation of View Controller