Added button command function