added main view logic and gitignore files