change layout and functions