Added function to change element's value