switch states logic
open & close PUT requests
PUT flag request
hide stats view when beach is not open