adding option to specify median filtering in the webapp