Added methods to view controllers