Create a function to adjust the dropdown of brands depending on the entity. At first, I use javascript with request based on onchange factor of the javascript. After the code completion, I tested the output and it is working accordingly however there is a slight delay on the effects due to ajax request. After trying, I have decided to group the data from the backend, and fetch them as an array and create a function so that we dont need to request everytime the entity changes.