replace 'unsafe_unretained' modifier by 'weak'
fix text input displacement after dismissing keyboard simultaneously with animation rotation