move elem and css insert to init()