after adding obj hook for before orientation change