adjusted popup position and animation