changed first button click function