added methods for updating the views