Add some logic for small screen layout