Reorg code and add responsive css