added a method on the view to do some stuff