test button functionality implemented