Removed tagName attribute.
Request data from controller function.
Formatting.
Added logging.