frontend cleanup