A basic controller using Pop State