added init methods to view