Fixed issues with passing parameters to helper functions, from view