add buttong working

added function for add button