FInish layout and rules