Removed anayltics code from edit, added to app helper