I have some button handleing but I need to debug