Add mouse listener to  frame class