Fixed an error in variable name
Finished up the popup and input stuff. May still be buggy