Edited popups to auto height