Refractoring code for app import compression
do not delete application json from text area while submitting