Statuses

Use a template for change status button
Fix a bug on advanced search by status