added mouse functionality and restraints