fixes somes bugs in the views