added update method, flash