added modal directive and modified to adjust to static serving file paths