Switch and onload

replaced long if to switch
onload text now
Switch Cases Fixed

changed long ifs into switch/case
edited command switch