responsive layout and better placeholder replacement