Fix multiple tabs opening in browser