add css and selected element