Refactor setState in view