layout view bug fix for small screens