Removed depreciated method in the main view.