added translate and keyboard handler