Fix keyboard behavior and slide view behavior