finally made buttons working