fixed semicolon bug and added scroll to top of tab when changing tabs