with a view to something/to doing something
with a view to (doing something)
Having the intention, purpose, or desire of doing something in the future. They offered her a training course with a view of moving her to upper management. He decided to help the thieves, with a view to keeping the spoils for himself. Of course, modern skyscrapers are designed with a view to withstanding such extreme weather conditions.
with a view to
For the purpose of, aiming toward, as in A-frame houses were designed with a view to shedding heavy snow. This idiom was first recorded in 1728.