improve CSS and keyboard support