moved code from SearchUI.attach to init (should be a general pattern) and fixing a getContent() related error (always create VerticalLayout by ourself, do not get the content and assume it is a VerticalLayout)