refactored to responsive design