add cointoss function but html/css popup bug