add button user logged in apd and put some code in ddb-common