Added functionality to btn