A simpler way to manage forms and their functionality in angular