Added url parameters for root and gens
renamed global variables for url parameters
Added checkID
Added some sanitization for inputs
Added trim to sanitize
Update URL based on pid and gens.
Run CheckID when start menu is clicked.