fixed some mouse bugs, added ui settings