refactor book select css and code