refactoring GuestbookController