working version of Frontend and DepthMessurement