reject empty messages on client side. set viewport for mobile