Prepare to switch to views