Removed legacy view() function