new function to add button