#113 popup box directive
#113 added some scope stuffs