fixed a bug related to the edit and add pages on the listings.