Tried to create controller but it didn't work