got the active buttons to work