added slug parameter to views