Creates a UI to fetch the states and show in a select box