moved require open uri to applications controller