make health bar and buttons functional