Added check for user opening up multiple tabs. Needs more work