fixed a bug where pinned was being checked improperly causing tabs to be re-registered.
rewrote multiple functions to be more functional.
modified tab check process to use the new lock system.
re-enabled tab check process.