added fps counter and smooth motion