add pending endpoint / and set global var $ for different kind of layuot views
#3