implemented books controller