added mouse handling and posing