Show component category, fix code style