fixed warnings
adapted view to new interface