update buttons to swtich views