fixed issues with page param
renamed vars and functions
fixed media_manager install
use $this shortcuts, fixed typo
removed unused variable
fixed typo