Improves xaml layout. Removes redundant xaml elements