UI elements hidden when printing