add focus and active states