reorganize code
fix styles
show URL content on preview