working on entries controller