freeze app (when function that returns promise is called in view)