added events for buttons. just need to add the book now
working on attaching to socket, sending to desktop