Add active state for ui elements