three buttons working with functionality