Added index method to applications controller