checks whether button exists