before fragment