refactor link applying method
auto focus on url bar