Created a weight dialog and makes use of it