add components styling
add drawing and fix components index bug