realize add button method