corrected overall code for resposive design