Fixes #76. Also moves pit form to pitedit controller