fix - setting scope variable to be used in view in every call