finish layout and stuff