Updated Code With View Appearing