Merged in changes made by Ritika for a right mouse menu for buttons. Not complete but xterm launching works