Added ui routing and home state