fixed some errors relating to responsive design