MainActivity: Switch to the first page smoothly when interacting with search