Basically implement the functionality to zoom in, out and adjusting
position according to the face only
1. check return value of socket function in ui.cpp