Button function added