set layout and ui properties