refactor + photo upload link