fix displaying issues on smaller screens