fixed popup behavior