added basic client functionality and layout