changed def date render, cleaned some views