Making the view read button work