refactoring
automaticaly get current tab url