Updated functions

Updated functions to new amp- attribute and basic modal toggles