Added a layer object to the view