change div position and add popup