Added functions for assigning Models to the View