Removed flask upload with ajax to support single page application paradigm