Better gui events and sorted resources