Added functionality to choose a form