add upload controller
change has_many name
fix bugs