added initialize method to View