do some layout