added mixpanel, refactored displayFailure/displayLoading