added code for op buttons. non-working still