Refactored views to have a slug