added new gitignore
updated controller with switch statement