init form controller and entity