changed position and adjust margin