update frontend layout