adding funtion to button like