adding buttons to main view