update layout for small screens, small detector improvement