implemented mouse capturing
removed pointer