cleaned up
implemented file selection and mapping to view