fix bug with browser tab & add some method related to base64 encode/decode