added required logic to new application