fixed code and removed css not tested