added function for displaying and adding media

two functions has been added in our controller:

_display() for outputting data
_addMedia() for injecting stylesheet and javascript