added compatibility for small tablet screens