semi-fixed update bug

Added a $_session to set $pid as personid

changed order of input "act" and "pid"