Layout cleanup + keyboard visibility.