changed button ui and fixed various modal behaviors