added helper methods for view controllers