adding get/setFile functions to layout