changes template to erb