update buttons and print layout