added update method to logs controller