control buttons, shared object added and code has cleaned up