Refactored.
Added UI script for btnUpdate.