main frame add button function