moved button events to gameframe