add main ID and remvoe trailing slash (temporary solution)