tweak style
use controller
rewrite actions, integrate localStorage