updated css and js. fixed layout issue for frontend editing