changed html structure, added missing js functionality, added new styles