fixed button going to wrong target bug in history view