Cleaner way to set browser pop ups to floating