add focus and active states for <a> tags