Add pdf upload and fix status filtering