File additions

Added page content logic
Added functions