fixing updating of forms; conditional for type of post button