got frontend to display the edit page correctly