changes so that the buttons will work