Expanded View constructor, fixed NullPointer

Added an additional parameter to the View constructor to included a call
for the layout to be used with the view.
Commented out the dynamic code to get the parent frame of a View in
order to fix the NullPointerException that is called on running the
application.