For more than six decades, man has known how to improve aircraft safety and has had the technology to implement that improvement. They can add these things to the pilots' compartment until the walls are cluttered up with them from top to bottom. They can evolve all manner of flapping, fluttering doo-dads that pop out of tails and wings and accomplish some purpose or other. More gadgets won't necessarily prevent accidents.
Accidents continue to happen and there's no sense in claiming they can be entirely prevented.
The only intelligent thing to do is to build the planes to withstand as violent a crash as possible. The designers and engineers must build planes so the pilot and passenger compartment will remain intact above all else in a crash. The present tubular fuselages have frequently demonstrated their fragility at the cost of both passenger and crew fatalities. Regulatory agencies and manufacturers continue to focus on accident avoidance instead of accident survivability. The number of gadgets, which are installed on, or being considered for installation in conventional aircraft continues to rise, adding weight to aircraft and increasing the pilot workload.