adding btn functionality