adding hooks for ios