detect wss case
layout buttons