position popup menu correctly