creating details page (basid CRUD)