responsive styles and code cleanup