Refactors funtion to open modal when adds Vehicle