Removed controller provider and created middleware