add demo link to readme
add active state memoization