Add authentication and use the same view for all resources