sending data to the view