added methods for view controllers