finalizing layout on frontend