improved the form add controller