Made composite view and layout snippets - moved initialize under triggers, events and ui so methods are grouped below