add pseudo elements automatically