Added proper update function
Replaced double quotes with single quotes