added controller and  template draft
added javascript avatar upload