Added view compilation function
Removed