working with the layout and time