nice view transition code in controller