Reformat code, change default transition to slide