Added recenter button and corresponding event handling.