More optimized show/selected
Rewrite show/moved
Don't pass state to show function