Separate initialize methods for layout and data