Swapped View and Controller Code