getting view main wired up