add view button to main page