Working share and preview func.

20140601/02
Happy children's day!

Left over with only galary until the MAIN framework to work properly.