added click and ctrl-click to change start and end pose resp.