improved modularity of client-side lunch room code