Added pattern invoke on buttons