Fixed html bug with popup