makes button work