Fixed PHP bugs and standardized button CSS spacing