Some button functionality implemented