more work on current url class and file rendering