update gradient bg and add active state