added test to verify modal closes when probability functions are edited and saved. fixed bug where edit view was not returning proper information for ajax requests. Fixes #195