initial version  of layout and data binding