linked some parts
linked some parts 2
added some logic
added some winproc
cleanup, not working