add directive to hide result html until result has been returned