refactored paint use of _ui.chrome.show_hide
added css to show and hide UI (using transitions)