Implements button click