add tempfile and create gui file

substitution fixed download with tempfile support. and start code gui
part.