Refactored metadata version view
Fixed versions API