made json pretty and updated assignments view for empty items