add button func to main page links