divide programm in fuctions
add url download to logon() solved stupid error - it works now