Added basics for xy buttons and selectedpanel

Needs to be implemented properly