Rename returnApplication to nextApplication