getting data by button