added new logic to application template that indicates whether the logged in user is subscribed or not