minor fixes related to relative file paths
setting the view's element in the constructor rather than in the initialize function