Added event listener and form service for dynamic generation of forms based on underlying data