added required logic for form, seems CRUD are done for those, but code quality are awfull...