open and close button support and remote grant access script