added position and update styles