introduced init method for layout view