added component did mount function to get initial form values and added select box